package com.service.admin.trading.controller;

import com.service.admin.trading.service.TradingSpotOrderCheckService;
import com.service.core.rest.BaseController;
import com.service.core.rest.response.BaseResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("trading-check")
public class TradingCheckController extends BaseController {

    @Autowired
    private TradingSpotOrderCheckService orderCheckService;

    @PostMapping("/{symbol}")
    public BaseResponse checkHandicap(@PathVariable("symbol") String symbol) {
        orderCheckService.checkSportOrder(symbol);
        return successBaseResponse();
    }




}
